﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Kiosk
{
    public partial class ViewControl : UserControl
    {
        public event EventHandler RightNavigation;
        public event EventHandler LeftNavigation;

        protected string _title;

        public string Title
        {
            get { return _title; }
            set { _title = value; }
        }

        public ViewControl()
        {
            InitializeComponent();
        }

        protected void buttonRight_Click(object sender, EventArgs e)
        {
            if (RightNavigation != null)
                RightNavigation(sender, e);
        }

        protected void buttonLeft_Click(object sender, EventArgs e)
        {
            if (LeftNavigation != null)
                LeftNavigation(sender, e);
        }
    }
}
